﻿using God.ShoppingWebApi.DTO;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace God.ShoppingWebApi.IService
{
    public interface IAdminCommService:IApplicationService
    {
        /// <summary>
        /// 商品添加
        /// </summary>
        /// <param name="commodInfo"></param>
        /// <returns></returns>
        /*Task<CommDTO> AddAsync(CommodInfoDTO commodInfo)*/
        public Task AddAsync(CommDTO commodInfo);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        Task<List<CommDTO>> GetListAsync();
        //Task<PagedResultDto<CommDTO>> GetListAsync(PagedAndSortedResultRequestDto input);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="gu"></param>
        /// <returns></returns>
        Task DeleteAsync(Guid gu);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="infoDTO"></param>
        /// <returns></returns>
        Task<CommDTO> Update(CommDTO infoDTO);
        /// <summary>
        /// 返填
        /// </summary>
        /// <param name="gid"></param>
        /// <returns></returns>
        Task<CommDTO> Edit(Guid gid);
    }
}
